# Plugin's routes
if Rails::VERSION::MAJOR >= 3
	RedmineApp::Application.routes.draw do 
		match 'projects/:project_id/issues/issues_chart', :to => 'chart#issues_chart', :via => 'get'
	end
else
  	ActionController::Routing::Routes.draw do |map|
    	map.with_options :controller => 'chart' do |bw_routes|
      		bw_routes.with_options :conditions => {:method => :get} do |bw_views|
        		bw_views.connect 'projects/:project_id/issues/issues_chart', :action => 'issues_chart'
      		end
    	end
  	end
end
